<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderSidAddSid extends Migrator
{
    public function up()
    {

        $this->table('coupon_order_sid')
            ->addColumn('sid', 'string', ['limit' => 32, 'default' => '', 'comment' => '代理的sid'])//在user表中增加一个test字段
            ->update();


    }

    public function down()
    {
        $this->table('coupon_order_sid')
            ->removeColumn('sid');
    }
}
